import request from '@/config/axios'

// 功能提示词 VO
export interface ProjectCellPromptVO {
  id: number // 编号
  projectId: number // 项目id
  prompt: string // 功能内容
  status: string // 状态（1，有效，2无效）
  remark: string // 备注
}

// 功能提示词 API
export const ProjectCellPromptApi = {
  // 查询功能提示词分页
  getProjectCellPromptPage: async (params: any) => {
    return await request.get({ url: `/agent/project-cell-prompt/page`, params })
  },

  // 查询功能提示词详情
  getProjectCellPrompt: async (id: number) => {
    return await request.get({ url: `/agent/project-cell-prompt/get?id=` + id })
  },

  // 新增功能提示词
  createProjectCellPrompt: async (data: ProjectCellPromptVO) => {
    return await request.post({ url: `/agent/project-cell-prompt/create`, data })
  },

  // 修改功能提示词
  updateProjectCellPrompt: async (data: ProjectCellPromptVO) => {
    return await request.put({ url: `/agent/project-cell-prompt/update`, data })
  },

  // 删除功能提示词
  deleteProjectCellPrompt: async (id: number) => {
    return await request.delete({ url: `/agent/project-cell-prompt/delete?id=` + id })
  },

  // 导出功能提示词 Excel
  exportProjectCellPrompt: async (params) => {
    return await request.download({ url: `/agent/project-cell-prompt/export-excel`, params })
  },
}